#pragma once

#include "Config.h"
#include "DBStream.h"
#include <stdio.h>

namespace db
{

class WriteFileStream : public WriteStream
{
private:
    FILE*       m_file;
public:

    WriteFileStream(const std::string& fileName);
	bool write(const void* data, const unsigned int size);
    void complete();
    bool open();
};

class ReadFileStream : public ReadStream
{
private:
    FILE*       m_file;
public:
    ReadFileStream(const std::string& fileName);
    ~ReadFileStream();

	bool read(void* data, const unsigned int size);
    void complete();
    bool open();
};

};